package com.happystreet.config
{
	import com.happystreet.info.ItemInfo;
	import com.happystreet.utils.CustomUtils;
	
	import flash.utils.getTimer;
	
	public class ItemsConfig
	{
		public function ItemsConfig()
		{
		}
		/**
		 *获取ItemInfo  
		 * @param id		配置ID
		 * @param _args
		 * @return 			ItemInfo
		 * 
		 */		
		public static function getItemInfo(id:int, ... _args):ItemInfo
		{
			var time:uint = getTimer();
			var itemInfo:ItemInfo = AssetsConfig.getItemData(id);
			if (itemInfo == null)
			{
				trace("item -> "+id+"is not defined");
			}
			CustomUtils.storeTime("getItemConfig", (getTimer() - time));
			return itemInfo;
		}
	}
}